//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package cn.levi.sensitive.exceptions;


import lombok.Data;

/**
 * @author ：levi
 * 敏感词错误提示
 */
@Data
public class SensitiveException extends RuntimeException {

	private Integer code;
	private String errorMessage;
	private static final Integer ERROR_CODE = 500;

	private static final String ERROR_MESSAGE = "Sensitive Exception";

	public SensitiveException() {
		super(ERROR_MESSAGE);
		this.errorMessage = ERROR_MESSAGE;
		this.code = ERROR_CODE;
	}

	public SensitiveException(Integer code) {
		super(ERROR_MESSAGE);
		this.code = code;
		this.errorMessage = ERROR_MESSAGE;
	}

	public SensitiveException(String errorMessage) {
		super(errorMessage);
		this.errorMessage = errorMessage;
		this.code = ERROR_CODE;
	}

	public SensitiveException(Integer code, String errorMessage) {
		super(errorMessage);
		this.code = code;
		this.errorMessage = errorMessage;
	}

}
